home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / dos / maxcli.c < prev    next >
C/C++ Source or Header  |  1996-10-24  |  1KB  |  65 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: maxcli.c,v 1.4 1996/10/24 15:50:33 aros Exp $
  4.     $Log: maxcli.c,v $
  5.     Revision 1.4  1996/10/24 15:50:33  aros
  6.     Use the official AROS macros over the __AROS versions.
  7.  
  8.     Revision 1.3  1996/10/10 13:21:22  digulla
  9.     Returns ULONG instead of BPTR (Fleischer)
  10.  
  11.     Revision 1.2  1996/08/01 17:40:55  digulla
  12.     Added standard header for all files
  13.  
  14.     Desc:
  15.     Lang: english
  16. */
  17. #include <exec/execbase.h>
  18. #include <clib/exec_protos.h>
  19. #include <dos/dosextens.h>
  20.  
  21. /*****************************************************************************
  22.  
  23.     NAME */
  24.     #include <clib/dos_protos.h>
  25.  
  26.     AROS_LH0(ULONG, MaxCli,
  27.  
  28. /*  SYNOPSIS */
  29.  
  30. /*  LOCATION */
  31.     struct DosLibrary *, DOSBase, 92, Dos)
  32.  
  33. /*  FUNCTION
  34.     Returns the highest Cli number currently in use. Since processes
  35.     may be added and removed at any time the returned value may already
  36.     be wrong.
  37.  
  38.     INPUTS
  39.  
  40.     RESULT
  41.     Maximum Cli number (_not_ the number of Clis).
  42.  
  43.     NOTES
  44.  
  45.     EXAMPLE
  46.  
  47.     BUGS
  48.  
  49.     SEE ALSO
  50.  
  51.     INTERNALS
  52.  
  53.     HISTORY
  54.     29-10-95    digulla automatically created from
  55.                 dos_lib.fd and clib/dos_protos.h
  56.  
  57. *****************************************************************************/
  58. {
  59.     AROS_LIBFUNC_INIT
  60.     AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
  61.     
  62.     return DOSBase->dl_ProcCnt-1;
  63.     AROS_LIBFUNC_EXIT
  64. } /* MaxCli */
  65.